package com.smart.campus.interfaces;

import com.smart.campus.dto.SysRole;
import com.smart.campus.pojo.PagedResponse;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

public interface SysRoleServiceApi {

    @RequestMapping(value = "sysRole/findSysRoleList")
    public List<SysRole> findSysRoleList();

    @RequestMapping(value = "sysRole/pageRole")
    public PagedResponse<SysRole> pageRole(@RequestBody SysRole sysRole, @RequestParam(value = "pageNum")Integer pageNum,@RequestParam(value = "pageSize")Integer pageSize);

    @RequestMapping(value = "addRole")
    public void addRole(@RequestBody SysRole sysRole);

    @RequestMapping(value = "delSysRole")
    public void delSysRole(@RequestParam(value = "roleId")Integer roleId);

    @RequestMapping(value = "findRoleById")
    public SysRole findRoleById(@RequestParam(value = "roleId")Integer roleId);

    @RequestMapping(value = "updateRole")
    public void updateRole(@RequestBody SysRole sysRole);

    @RequestMapping(value = "updateRoleStatus")
    public void updateRoleStatus(@RequestBody SysRole sysRole);
}
